  <!--=================中型排行2================= -->
  <div class="diy_layout_box" <php>if(!empty($attr['tplHeight'])) {</php>style="height:{$attr['tplHeight']}"<php>}</php>>
    <notempty name="title">
	<h3 class="tit_bg">
		<notempty name="attr['head_link']">
			<span class="R">
				<php>
				foreach($attr['head_link'] as $vo) {
					echo '<a href="' . $vo->url . '" target="_blank">' . $vo->title . '</a> ';
				}
				</php>
			</span>
		</notempty>
		{$title}
	</h3>
	</notempty>

    <ul class="diy_group_list">
	  <volist name="list" id="vo">
      <li>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td width="60"><span class="headpic50"> 
					<a href="{:U('space/View/index','uid='.$vo['uid'])}" target="_blank">
						<img height="45" width="45" src="{$vo['uid']|getUserFace}"/>
					</a>
				</span></td>
				<td>
					<h4><a href="{:U('space/View/index','uid='.$vo['uid'])}" target="_blank">{$vo['uname']}</a></h4>
					<!-- 前两篇博文 -->
					<notempty name="last_x">
					<php>if($last_x['type'] == "followed"){</php>
						<p class="cl06 lh18" style="clear: both;">部门：{$vo['dept']|getShort=###,$attr['words']}</p>
						<p class="cl06 lh18" style="clear: both;">被关注：<php>if( empty($vo['followed']) ) { echo 0; }else{ echo $vo['followed'][0]['counts']; }</php></p>
					<php>}else if($last_x['type'] == "score"){</php>
						<p class="cl06 lh18" style="clear: both;">贡献：<php>if( empty($vo['score']) ) { echo 0; }else{ echo $vo['score'][0]['credit_exp']; } </php></p>
						<p class="cl06 lh18" style="clear: both;">金币：<php>if( empty($vo['score']) ) { echo 0; }else{ echo $vo['score'][0]['credit_score']; } </php></p>
					<php>}else{</php>
						<php>if(!empty($vo[$last_x['type']]) ){</php>
	
							<php>$tempLastData = array_slice($vo[$last_x['type']],0,2);</php>
							<php>foreach($tempLastData as $index => $vo2) {</php>
								<p>
								<switch name="last_x['type']">
									<case value="feed"><a class="cl03" href="{:U('space/View/index','uid='.$vo['uid'])}" target="_blank"><php>echo $vo2['title'];</php></a></case>
									<case value="record"><a class="cl03" href="{:U('space/View/record','uid='.$vo['uid'])}" target="_blank">{$vo2['content']|getShort=###,$attr['words']}</a></case>
									<case value="ask"><a class="cl03" href="{:U('ask/Index/detail','id='.$vo2['askId'])}" target="_blank">{$vo2['title']|getShort=###,$attr['words']}</a></case>
									<case value="bbs"><a class="cl03" href="{:U('bbs/Index/detail','id='.$vo2['id'])}" target="_blank">{$vo2['title']|getShort=###,$attr['words']}</a></case>
									<case value="blog"><a class="cl03" href="{:U('blog/Index/detail','id='.$vo2['blogId'].'&uid='.$vo['uid'])}" target="_blank">{$vo2['title']|getShort=###,$attr['words']}</a></case>
									<case value="wiki"><a class="cl03" href="{:U('wiki/Index/detail','id='.$vo2['id'])}" target="_blank">{$vo2['title']|getShort=###,$attr['words']}</a></case>
								</switch>						
								</p>
							<php>}</php>
						<php>}</php>
					<php>}</php>
					</notempty>
				</td>
			  </tr>
        </table>
      </li>
      </volist>
    </ul>
  </div>